<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="ar.uade.edu.fain.ad.common.transfer.SectorVO"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Abrir una mesa</title>
</head>
<body>

	<table>
		<thead>
			<tr>
				<th>Sector ID</th>
				<th>Nombre</th>
			</tr>
		</thead>
		<tbody>
		<%
			@SuppressWarnings("unchecked")
			final Iterable<SectorVO> sectores = (Iterable<SectorVO>)
					request.getAttribute("sectores");	
			for (SectorVO sectorVO : sectores) {
		%>
			<tr>
				<td><%=sectorVO.getId().toString()%></td>
				<td><%=sectorVO.getNombre()%></td>
			</tr>
		<%
			}
		%>
		</tbody>
	</table>
	
	<br>
	
	<form action="<%=request.getContextPath()%>/salon/aperturaMesa/seleccionarSector.action" method="post">
		Sector ID: <input id="sectorInputText" name="sectorId" type="text"><br>
		Cantidad Comensales: <input id="cantidadComensalesInputText" name="cantidadComensales" type="text"><br>
		<input type="submit" value="Buscar mesas en el sector"><br>
	</form>

</body>
</html>